package com.wc.tt;

//病假，如果请假天数小于0.5，那么绩效分不扣，基本分计算规则不变
public class SickAttence extends AbstractAttence {
    private static final SickAttence sickAttence = new SickAttence();

    private SickAttence() {

    }

    public static SickAttence getSickAttence() {
        return sickAttence;
    }

    @Override
    public double reduceBaseScore(double days, int type) {
        return general(days, type);
    }

    @Override
    public double reducePerformanceScore(double days, int type) {
        if (days < 0.5)
            return 0;
        return generalPerformanceScore(days, type);
    }
}

